package com.sina.shop.manage.service.goods;

import com.sina.shop.core.BaseService;
import com.sina.shop.core.exception.client.DataException;
import com.sina.shop.core.exception.server.CreateException;
import com.sina.shop.core.exception.server.ResourceExistsException;
import com.sina.shop.core.exception.server.UpdateException;
import com.sina.shop.domain.goods.Goods;

import java.util.List;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * 段浩杰   2018-01-11-14:17
 */
public interface GoodsManageService extends BaseService {

    List<Map<String, Object>> getGoodsIdAndName();

    List<Goods> getGoodsByAdminAccount(String account);

    Goods getGoodsById(Long id);

    int deleteGoods(Long id) throws DataException, UpdateException;

    Goods saveGoods(Goods goods) throws CreateException, ResourceExistsException, DataException;

    Goods updateGoods(Goods goods) throws UpdateException, DataException;

    List<Map<String, Object>> getGoodsList(Goods goods, Long count[]);

    List<Goods> getGoodsList();
}
